<?php 

	$link=mysql_connect("localhost","root","");
	mysql_select_db("wh00105_jp_banred");

	$ahora = getdate();
	
	$fecha_sql = $ahora["year"] . "-" . $ahora["mon"] . "-" . $ahora["mday"];
	
	$result = mysql_query("select id from fechas where fecha = '" . $fecha_sql . "'");
	$row = mysql_fetch_row($result);
	
	if($row){
		echo "hay";
	}
	else{
		echo "no hay";
	}


?>

